package com.woniuxy.controller;

public enum Singleton {
    instance;

    public void doSomething() {
        System.out.println("单例实现了额");
    }
}
 class Main {
    public static void main(String[] args) {
        Singleton.instance.doSomething();
    }
}

